public class Phone implements IDevice{
    private String model;
    private Boolean ison;

    public Phone(String model, Boolean ison) {
        this.model = model;
        this.ison = ison;
    }//构造方法属于内部成员，有权限访问私有对象
/*

    public String getModel() {
        return model;
    }
*/

    public Boolean getIson() {
        return ison;
    }

    @Override
    public void powerOn() {
        System.out.println(this.model + "正在打开");
    }

    @Override
    public void powerOff() {
        System.out.println(this.model + "正在关闭");
    }
}
